const router = require('koa-router')()
const stockControl = require('../controller/stock') //引入逻辑

router.prefix('/stock')

router.post('/', stockControl.addStock)
router.del('/', stockControl.deleteStock)

router.get('/table/search', stockControl.searchStockList)

module.exports = router
